package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.AttrVo;
import com.atguigu.gulimall.product.vo.AttrVoResponse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author GuanMing.Zhu
 * @email xiaoming.080797@gmail.com
 * @date 2020-10-20 20:52:23
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryBaseList(Map<String, Object> params, Long categoryId, Integer code);

    void saveDetail(AttrVo attrVo);

    void updateDetail(AttrVo attrVo);

    AttrVoResponse getDetail(Long attrId);

    List<AttrEntity> attrRelation(Long attrgroudId);

    PageUtils noAttrRelation(Map<String, Object> params, Long attrgroupId);
}

